package com.jiesen.base.modules.certificate.textbook.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiesen.base.utils.PageDto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2020-08-27
 */
@Data
@NoArgsConstructor
@TableName("js_video")
@EqualsAndHashCode(callSuper = false)
public class JsVideo extends PageDto {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;          //视频id
    private Integer sort;        //排序
    //private Integer detailed;    //1、内部（详细），2、公开(粗略)
    private Integer textbookId;  //所属章节
    private String label;        //序列号
    private String url;          //资源url
    private String name;         //资源名称
    private Integer size;        //资源大小
    private Integer count;       //资源播放量
    private String image;        //资源封面
    private String suffixName;  //视频后缀
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date cts;           //注册时间
    private String operator;    //上传者

}